import request from "@/router/axios";

export function workCheckFetchList(query) {
  return request({
    url: "/eims/workCheck/getNeedCheckByPage",
    method: "get",
    params: query
  });
}


export function workCheckedFetchList(query) {
  return request({
    url: "/eims/workCheck/getCheckedByPage",
    method: "get",
    params: query
  });
}

// 新增加工单
export function workCheckAddObj(obj) {
  return request({
    url: "/eims/workCheck",
    method: "post",
    data: obj
  });
}


export function getBySaleId(saleId) {
  return request({
    url: "/eims/workCheck/" + saleId,
    method: "get"
  });
}


export function workCheckGetObj(id) {
  return request({
    url: "/eims/workCheck/getNeedCheckByPage/" + id,
    method: "get"
  });
}

export function workCheckDelObj(id) {
  return request({
    url: "/eims/workCheck/getNeedCheckByPage/" + id,
    method: "delete"
  });
}


export function getCheckInfoBySaleId(saleId) {
  return request({
    url: "/eims/workCheck/getCheckInfo/" + saleId,
    method: "get"
  });
}
